#include<iostream>
using namespace std;
#include<vector>

class Solution {
public:
    vector<int> twoSum(vector<int>& nums, int target) {
        int ret = 0;
        vector<int>v;
        for (int i = 1; i < nums.size(); i++)
        {
            for (int j = 0; j < i; j++)
            {
                if (nums[j] == target - nums[i])
                {
                    v.push_back(j);
                    v.push_back(i);
                    break;
                }
            }
        }
        return v;
    }
};